
$(document).ready(function () {
    $("#submitVal").click(function () {
        var loginAccount = $("#loginAccount").val().trim();
        if (loginAccount == '') {
            $("#message").val("用户名不能为空");
            return false;
        } else {
            var password = $("#password").val().trim();
            if (password == '') {
                $("#message").val("密码不能为空")
                return false;
                var path="${ctx}/login.action"
            } else {
                $("#loginAction").attr("action",path).submit();
            }
        }
    })
});